package com.info.zhiduoduo.common.constants;

public class Constants {

	/** int型代表true */
	public static final int TRUE = 1;
	/** int型代表false */
	public static final int FALSE = 0;

	//创客状态 1注册未绑定手机 2已绑定手机 3冻结 4解约
	public static final int user_state_1 = 1;
	public static final int user_state_2 = 2;
	public static final int user_state_3 = 3;
	public static final int user_state_4 = 4;

	//创客申请注销状态 1：申请中 2：已受理 3：已拒绝 4：已完成解约
	public static final int user_rescission_state_1 = 1;
	public static final int user_rescission_state_2 = 2;
	public static final int user_rescission_state_3 = 3;
	public static final int user_rescission_state_4 = 4;

	//合伙人状态 1注册未绑定手机 2已绑定手机 3冻结 4解约
	public static final int partner_state_1 = 1;
	public static final int partner_state_2 = 2;
	public static final int partner_state_3 = 3;
	public static final int partner_state_4 = 4;

	//创客实名认证 1.未认证 2:认证中 3:认证失败 4:已认证 5:已开户
	public static final int realname_auth_1 = 1;
	public static final int realname_auth_2 = 2;
	public static final int realname_auth_3 = 3;
	public static final int realname_auth_4 = 4;
	public static final int realname_auth_5 = 5;

	//企业注册状态 1.注册未认证 2认证中 3认证失败 4已认证 5冻结 6拉黑
	public static final int comp_state_1 = 1;
	public static final int comp_state_2 = 2;
	public static final int comp_state_3 = 3;
	public static final int comp_state_4 = 4;
	public static final int comp_state_5 = 5;
	public static final int comp_state_6 = 6;

	//企业实名认证状态
	public static final int comp_auth_1 = 1;
	public static final int comp_auth_2 = 2;

	//合伙人实名认证 1.未认证 2:认证中 3:认证失败 4:已认证
	public static final int partner_auth_1 = 1;
	public static final int partner_auth_2 = 2;
	public static final int partner_auth_3 = 3;
	public static final int partner_auth_4 = 4;

	//众包自然人状态 1注册未绑定手机 2已绑定手机 3冻结
	public static final int crowdsource_state_1 = 1;
	public static final int crowdsource_state_2 = 2;
	public static final int crowdsource_state_3 = 3;

	//众包自然人实名认证 1：未认证 2:认证中 3:已认证 4：已解约
	public static final int crowdsource_auth_1 = 1;
	public static final int crowdsource_auth_2 = 2;
	public static final int crowdsource_auth_3 = 3;
	public static final int crowdsource_auth_4 = 4;

	// 用户状态 1注册未绑定手机 2已绑定手机 3冻结
	public static final int taxer_state_1 = 1;
	public static final int taxer_state_2 = 2;
	public static final int taxer_state_3 = 3;

	// 用户实名认证 1.未认证 2:已提交 3：认证失败 4:已认证 5:已开工作室
	public static final int taxer_auth_1 = 1;
	public static final int taxer_auth_2 = 2;
	public static final int taxer_auth_3 = 3;
	public static final int taxer_auth_4 = 4;
	public static final int taxer_auth_5 = 5;

	//发票状态  1.等待受理 2申请中 3受理中 4已完成 5被拒绝 6作废
	public static final int invoicestate_1 = 1;
	public static final int invoicestate_2 = 2;
	public static final int invoicestate_3 = 3;
	public static final int invoicestate_4 = 4;
	public static final int invoicestate_5 = 5;
	public static final int invoicestate_6 = 6;

	//项目类型 1.公开 2私密
	public static final int projecttype_1 = 1;
	public static final int projecttype_2 = 2;

	//项目状态 1草稿 2待发布 4已发布 6竞标中 8竞标结束 10进行中 12验收中
	// 13 验收完成 14 拒绝验收 15待线下支付 20已完成 40已取消 44删除
	public static final int projectstate_1 = 1;
	public static final int projectstate_2 = 2;
	public static final int projectstate_4 = 4;
	public static final int projectstate_6 = 6;
	public static final int projectstate_8 = 8;
	public static final int projectstate_10 = 10;
	public static final int projectstate_12 = 12;
	public static final int projectstate_13 = 13;
	public static final int projectstate_14 = 14;
	public static final int projectstate_15 = 15;
	public static final int projectstate_20 = 20;
	public static final int projectstate_40 = 40;
	public static final int projectstate_44 = 44;

	/** 项目仲裁状态 1:未仲裁 2:仲裁中 3:已仲裁 */
	public static final int arbitratetstate_1 = 1;
	public static final int arbitratetstate_2 = 2;
	public static final int arbitratetstate_3 = 3;

	//订单状态: 1:待支付 2:支付中 3:已支付 4:已完成 5:支付失败 6:支付超时 7:订单取消 8:退款中 9:已退款
	/** 待支付 */
	public static final int orderstate_1 = 1;
	/** 支付中 */
	public static final int orderstate_2 = 2;
	/** 已支付 */
	public static final int orderstate_3 = 3;
	/** 已完成 */
	public static final int orderstate_4 = 4;
	/** 支付失败 */
	public static final int orderstate_5 = 5;
	/** 支付超时 */
	public static final int orderstate_6 = 6;
	/** 订单取消 */
	public static final int orderstate_7 = 7;
	/** 退款中 */
	public static final int orderstate_8 = 8;
	/** 已退款 */
	public static final int orderstate_9 = 9;

	/** 第三方支付,代付给创客 */
	public static final int TRADE_TYPE_PAYMENT = 1;
	/** 第三方支付,代收企业的付款 */
	public static final int TRADE_TYPE_COLLECTION = 2;
	/** 第三方支付状态:已受理 */
	public static final int TRADE_CREATE = 1;
	/** 第三方支付状态:处理中 */
	public static final int TRADE_IN_PROCESS = 2;
	/** 第三方支付状态:交易成功 */
	public static final int TRADE_SUCCESS = 3;
	/** 第三方支付状态:交易失败 */
	public static final int TRADE_FAIL = 4;
	/** 第三方支付状态:交易拒绝 */
	public static final int TRADE_REFUSE = 5;

	/** 流水名目:充值 */
	public static final String ACCT_FLOW_RECHARGE = "充值";
	/** 流水名目:线下充值 */
	public static final String ACCT_FLOW_OFFLINE_RECHARGE = "线下充值";
	/** 流水名目:提现 */
	public static final String ACCT_FLOW_WITHDRAW = "提现";
	/** 流水名目:支付 */
	public static final String ACCT_FLOW_PAYMENT = "支付";
	/** 流水名目:收入 */
	public static final String ACCT_FLOW_INCOME = "收入";
	/** 流水名目:服务费 */
	public static final String ACCT_FLOW_SERVICE = "服务费";

	/** 企业充值状态:申请中 */
	public static final int RECHARGE_APPLYING = 1;
	/** 企业充值状态:充值中 */
	public static final int RECHARGE_PROCESSING = 2;
	/** 企业充值状态:已完成 */
	public static final int RECHARGE_CONFIRMED = 3;

	/** 普通标签 */
	public static final int TAG_NORMAL = 0;
	/** 默认标签 */
	public static final int TAG_DEFAULT = 1;

	/** 账单流水 收入 */
	public static final int FLOW_TYPE_INCOME = 0;
	/** 账单流水 支出 */
	public static final int FLOW_TYPE_OUTLAY = 1;

	/** 企业合伙人状态：可用的 */
	public static final int PARTNER_COMPANY_VALID = 1;
	/** 企业合伙人状态：已过期的 */
	public static final int PARTNER_COMPANY_EXPIRED = 2;

	/** 合伙人类型: 个人合伙人 */
	public static final int PARTNER_ACCOUNT_TYPE_PERSONAL = 1;
	/** 合伙人类型: 机构合伙人 */
	public static final int PARTNER_ACCOUNT_TYPE_ORGAN = 2;

	/** 合伙人推荐企业状态：审核中 */
	public static final int PARTNER_RECOMMEND_VERIFYING = 1;
	/** 合伙人推荐企业状态：已审核 */
	public static final int PARTNER_RECOMMEND_VERIFIED = 2;
	/** 合伙人推荐企业状态：已处理已分润 */
	public static final int PARTNER_RECOMMEND_HANDLED = 3;
	/** 合伙人推荐企业状态：驳回 */
	public static final int PARTNER_RECOMMEND_REJECT = 4;

	/** 创客银行卡类型 1：个人账户 */
	public static final int BANK_ACCT_TYPE_PERSONAL = 1;
	/** 创客银行卡类型 2：企业账户 */
	public static final int BANK_ACCT_TYPE_COMPANY = 2;

	//项目状态 1：新建 2：待付款 3：部分付款成功 4：全部付款完成 98:项目失败，联系客服 99：已废弃
	public static final int CROWDSOURCE_PROJECT_CREATE = 1;
	public static final int CROWDSOURCE_PROJECT_PAYING = 2;
	public static final int CROWDSOURCE_PROJECT_PART_PAID = 3;
	public static final int CROWDSOURCE_PROJECT_ALL_PAID = 4;
	public static final int CROWDSOURCE_PROJECT_ALL_PAID_EX = 5;
	public static final int CROWDSOURCE_PROJECT_FAILED = 98;
	public static final int CROWDSOURCE_PROJECT_CANCELLED = 99;

	//批次状态 0：已提交，1：开联通审核不通过 2：拆分中 3：已拆分 4: 批次失败 5:处理中 6:已处理 7：已回盘
	public static final int CROWDSOURE_BATCH_TRADE_SUBMITTED = 0;
	public static final int CROWDSOURE_BATCH_TRADE_VERIFY_FAILED = 1;
	public static final int CROWDSOURE_BATCH_TRADE_SPLITTING = 2;
	public static final int CROWDSOURE_BATCH_TRADE_SPLITTED = 3;
	public static final int CROWDSOURE_BATCH_TRADE_BATCH_FAILED = 4;
	public static final int CROWDSOURE_BATCH_TRADE_BATCH_HANDLING = 5;
	public static final int CROWDSOURE_BATCH_TRADE_BATCH_HANDLED = 6;
	public static final int CROWDSOURE_BATCH_TRADE_BATCH_FINISHED = 7;

	//订单状态(0：已创建，1：交易中 2：交易成功，3：交易失败，4：拒绝) (此字段用于判断业务执行状态)
	public static final int CROWDSOURCE_BATCH_ITEM_CREATED = 0;
	public static final int CROWDSOURCE_BATCH_ITEM_PAYING = 1;
	public static final int CROWDSOURCE_BATCH_ITEM_PAID = 2;
	public static final int CROWDSOURCE_BATCH_ITEM_FAILED = 3;
	public static final int CROWDSOURCE_BATCH_ITEM_REFUSED = 4;

	//众包项目申请开票状态(1 待开票   2 开票中   3 已开票    4已作废)
	public static final int CROWDSOURCE_INVOICE_STATE_1 = 1;
	public static final int CROWDSOURCE_INVOICE_STATE_2 = 2;
	public static final int CROWDSOURCE_INVOICE_STATE_3= 3;
	public static final int CROWDSOURCE_INVOICE_STATE_4= 4;

	//第三方项目开票状态（1 待开票   2 开票中   3 已开票）
	public static final int FOREIGN_INVOICE_STATE_1 = 1;
	public static final int FOREIGN_INVOICE_STATE_2 = 2;
	public static final int FOREIGN_INVOICE_STATE_3 = 3;

	//平安银行支付状态（20 成功  30 失败 其他 处理中 ）
	public static final int PINGAN_PAY_ORDER_STATE_PAID = 20;
	public static final int PINGAN_PAY_ORDER_STATE_FAILED = 30;

	/** 创客问卷调查地址的数据库key */
	public static final String KEY_MAKER_SURVEY_URL = "maker_sUrvey_url";
	/** 创客问卷调查 标题 */
	public static final String KEY_MAKER_SURVEY_TITLE = "maker_survey_title";
	/** 创客问卷调查 内容 */
	public static final String KEY_MAKER_SURVEY_CONTENT = "maker_survey_content";
	/** 企业问卷调查地址的数据库key */
	public static final String KEY_COMPANY_SURVEY_URL = "company_survey_url";
	/** 企业问卷调查 标题 */
	public static final String KEY_COMPANY_SURVEY_TITLE = "company_survey_title";
	/** 企业问卷调查 内容 */
	public static final String KEY_COMPANY_SURVEY_CONTENT = "company_survey_content";
	/** 限制交易开始时间 */
	public static final String RESTRAINT_TRADE_START = "restraint_trade_start";
	/** 限制交易结束时间 */
	public static final String RESTRAINT_TRADE_END = "restraint_trade_end";

	/**  支付类型：注册 */
	public static final int TAXER_PAY_TYPE_VERIFY = 1;
	/**  支付类型：续期 */
	public static final int TAXER_PAY_TYPE_RENEW = 2;
	/**  支付类型：发票税费 */
	public static final int TAXER_PAY_TYPE_INVOICE = 3;

	/** 工作室税户状态：不可开户（没有资格） */
	public static final int STUDIO_TAX_ACCT_NOT_QUALIFIED = 1;
	/** 工作室税户状态：可开户（有资格） */
	public static final int STUDIO_TAX_ACCT_QUALIFIED =2 ;
	/** 工作室税户状态：已开户 */
	public static final int STUDIO_TAX_ACCT_CONFIRMED =3 ;

	/** 微信支付状态：已创建 */
	public static final int WXPAY_CREATED = 1;
	/** 微信支付状态：支付中 */
	public static final int WXPAY_WATING_PAY = 2;
	/** 微信支付状态：超时未支付 */
	public static final int WXPAY_OVER_TIME = 3;
	/** 微信支付状态：已完成 */
	public static final int WXPAY_COMPLETED = 4;
	/** 微信支付状态：交易失败 */
	public static final int WXPAY_FAIL = 5;

	/** 企业线下支付状态: 未支付 */
	public static final int OFFLINE_PAYING = 1;
	/** 企业线下支付状态: 已支付 */
	public static final int OFFLINE_PAID = 2;
	/** 企业线下支付状态: 已处理 */
	public static final int OFFLINE_HANDLED = 3;

	/** 企业线下直充状态: 已申请 */
	public static final int OFFLINE_RECHARGE_APPLIED = 1;
	/** 企业线下直充状态: 转账中 */
	public static final int OFFLINE_RECHARGE_TRANSFERING = 2;
	/** 企业线下直充状态: 转账结束 */
	public static final int OFFLINE_RECHARGE_TRANSFER_FINISHED = 3;
	/** 企业线下直充状态: 充值完成 */
	public static final int OFFLINE_RECHARGE_COMPLETED = 4;

	/** 开联通交易业务: 给创客支付项目款 */
	public static final int KLT_PAY_BUSINESS_TYPE_USER_AMOUNT = 1;
	/** 开联通交易业务: 给九歌账户支付手续费用(税费+服务费+合伙人佣金) */
	public static final int KLT_PAY_BUSINESS_TYPE_JIUGE_CHARGE = 2;

	/**
	 * 收费类型-银行线下模式服务费ID 对应表：zdd_recharge_TYPE
	 */
	public static final int RECHARGE_OFFLINE_SERVICE_FEE = 11;
	public static final int RECHARGE_GENERAL_SERVICE_FEE = 1;
	public static final int RECHARGE_GENERAL_OTHER_FEE = 12;
	public static final int RECHARGE_GENERAL_TAXER_RENEWAL_FEE = 13;
	public static final int RECHARGE_GENERAL_TAXER_RATE_FEE = 14;
	public static final int JAY_TAX_MAN_ACCOUNT_OPENING_FEE = 15;

	/**
	 * 智零工项目类型(1:智众包，2:智零工)
	 */
	public static final int WORK_TYPE_1 = 1;
	public static final int WORK_TYPE_2 = 2;

	/**
	 * 业务类型编号( 业务:zdd;智众包业务:cro;智零工业务:odd 创客团业务：group)
	 */
	public static final String BUSINESS_SN_ZDD = "zdd";
	public static final String BUSINESS_SN_CRO = "cro";
	public static final String BUSINESS_SN_ODD = "odd";
	public static final String BUSINESS_SN_GROUP = "group";

	/**
	 * 跨行转账标记 1：行内转账，0：跨行转账
	 */
	public static final String UNION_FLAG_IN = "1";
	public static final String UNION_FLAG_OUT = "0";

	public static final String PWD_DES_KEY = "ZDDPWDHDQKSYDBFOWMP";
}
